#ifndef __RESOURCETREEVIEW_H_
#define __RESOURCETREEVIEW_H_

#include "qrceditor.h"

#include <QtCore/QObject>

class ResourceTreeView : public QWidget
{
    Q_OBJECT
    Q_CLASSINFO("ClassID", "{4087c129-d920-42b8-aec0-87b626cbb39b}")
    Q_CLASSINFO("InterfaceID", "{7d58148c-ace8-40bb-bbb9-6346965278c2}")
    Q_CLASSINFO("EventsID", "{003351a1-0574-41d8-bddf-d5d9026a8cb3}")
    Q_CLASSINFO("ToSuperClass", "ResourceTreeView")

public:
    ResourceTreeView(QWidget *parent = 0);
    ~ResourceTreeView();

public Q_SLOTS:
    bool load(const QString &file);
    bool save();

    bool isDirty() const;

    QString contents() const;

Q_SIGNALS:
    void dirtyChanged();

private:
    SharedTools::QrcEditor *m_editor;
};

#endif //EXPLORERVIEW_H
